package top.infopub.mgr.bpa.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.IncaeSureDetailDao;
import top.infopub.model.bpa.IncaeSureDetail;
import top.infopub.mgr.bpa.service.IncaeSureDetailService;

@Service
public class IncaeSureDetailServiceImpl extends GenericServiceImpl<IncaeSureDetail, String> implements
		IncaeSureDetailService {

	@Autowired
	private IncaeSureDetailDao incaeSureDetailDao;
	
	@Override
	public GenericDao<IncaeSureDetail, String> getDao() {
		return incaeSureDetailDao;
	}

    @Override
    public BigDecimal selectAddupAmountBySubNameAndRefId(String subName, String refId,
                                                         String typeName) {
        return incaeSureDetailDao.selectAddupAmountBySubNameAndRefId(subName, refId, typeName);
    }

}